package com.sxhnpg.dao;

import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;


import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;

import com.sxhnpg.model.Table;
import com.sxhnpg.model.TravelAgencyInfo;
import com.sxhnpg.model.User;
import com.sxhnpg.util.DBUtil;


public class TableDao extends BaseDao {

	public Class getEntityClass() {
		return Table.class;
	}
	
	
	// 登记月表列表
	public List<Table> findTables(){
		List<Table> tableList = null;
		Session session = getSession();
		if( session != null ){
			Criteria criteria =getSession().createCriteria(getEntityClass());
			
			tableList = criteria.list();
			
		}		
		return tableList;
	}
	
	
}
